package com.ruoyi.ucar.mapper;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.ucar.domain.TOrderPayDetail;
import org.apache.ibatis.annotations.Mapper;

/**
 * 订单支付详情Mapper接口
 *
 * @author ruoyi
 * @date 2025-07-25
 */
@Mapper
public interface TOrderPayDetailMapper extends BaseMapper<TOrderPayDetail>
{
    /**
     * 查询订单支付详情
     * @param id 订单支付详情主键
     * @return 订单支付详情
     */
    TOrderPayDetail selectTOrderPayDetailById(Long id);

    /**
     * 查询订单支付详情列表
     * @param tOrderPayDetail 订单支付详情
     * @return 订单支付详情集合
     */
    List<TOrderPayDetail> selectTOrderPayDetailList(TOrderPayDetail tOrderPayDetail);

    /**
     * 删除订单支付详情
     * @param id 订单支付详情主键
     * @return 结果
     */
    int deleteTOrderPayDetailById(Long id);

    /**
     * 批量删除订单支付详情
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteTOrderPayDetailByIds(Long[] ids);
    public BigDecimal queryCustomerSumPay(HashMap<String,Object> map );


}
